<?php


namespace App\Models;


use Askedio\SoftCascade\Traits\SoftCascadeTrait;
use Illuminate\Database\Eloquent\SoftDeletes;

class WarehouseModel extends BaseModel
{
    use SoftDeletes;
    use SoftCascadeTrait;

    protected $softCascade = ['WarehouseArea'];
    protected $primaryKey = 'warehouse_id';
    protected $table = 'warehouse';

    public function WarehouseArea()
    {
        return $this->hasMany(WarehouseAreaModel::class, 'warehouse_id', 'warehouse_id');
    }
}

